import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/components/Index'
import Home from '@/components/Home'
import PaperList from '@/components/paper/List'
import SectionList from '@/components/section/List'
import QuestionList from '@/components/question/List'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Index',
      component: Index,
      children: [{
        path: '',
        redirect: '/home'
      }, {
        path: 'home',
        name: 'Home',
        component: Home
      }, {
        path: 'paper',
        name: 'PaperList',
        component: PaperList
      }, {
        path: 'section',
        name: 'SectionList',
        component: SectionList
      }, {
        path: 'question',
        name: 'QuestionList',
        component: QuestionList
      }]
    }
  ]
})
